home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Utilities / Winter Shell 1.0d2 / Source / Libraries / DrawLib / DrawLib.h < prev   
Encoding:
C/C++ Source or Header  |  1994-01-02  |  1.6 KB  |  59 lines  |  [TEXT/KAHL]

  1. #pragma once
  2.  
  3. #ifdef MPW
  4.     /* define synonyms for the QuickDraw globals */
  5.     #define thePort        (qd.thePort)
  6.     #define white            (qd.white)
  7.     #define black            (qd.black)
  8.     #define gray            (qd.gray)
  9.     #define ltGray            (qd.ltGray)
  10.     #define dkGray            (qd.dkGray)
  11.     #define arrow            (qd.arrow)
  12.     #define screenBits    (qd.screenBits)
  13.     #define randSeed        (qd.randSeed)
  14. #endif
  15.  
  16. /* constant specifying the arrow cursor (used by DrawCursor) */
  17. #define arrowCursor (0)
  18.  
  19. /* describes a port's text drawing settings */
  20. typedef struct {
  21.     short    font;
  22.     Style    face;
  23.     short    mode;
  24.     short    size;
  25. } TextState;
  26.  
  27. void SetHiliteMode(void);
  28.  
  29. void InvalXorRgn(RgnHandle rgn1, RgnHandle rgn2);
  30. void InvalXorRect(const Rect *r1, const Rect *r2);
  31.  
  32. void LocalToGlobalRgn(RgnHandle rgn);
  33. void GlobalToLocalRgn(RgnHandle rgn);
  34. void PortToGlobalRgn(RgnHandle rgn, GrafPtr port);
  35. void GlobalToPortRgn(RgnHandle rgn, GrafPtr port);
  36.  
  37. void GlobalToPort(Point *pt, GrafPtr port);
  38. void PortToGlobal(Point *pt, GrafPtr port);
  39.  
  40. void GetTextState(TextState *text);
  41. void SetTextState(const TextState *text);
  42. void TextNormal(void);
  43.  
  44. void DrawCursor(short id);
  45. void DrawSICN(Handle sicn, Point pt, short index);
  46. void DrawIcon(Handle icon, Point pt);
  47.  
  48. void BorderRgn(const Rect *content, short width, short margin,
  49.     Boolean visible, RgnHandle rgn);
  50. void BorderDraw(const Rect *content, short width, short margin,
  51.     Boolean visible);
  52.  
  53. Point DragRgn(RgnHandle dragRgn, RgnHandle frameRgn,
  54.     const RgnHandle deskRgn, const RgnHandle limitRgn,
  55.     const RgnHandle contRgn, const RgnHandle clipRgn,
  56.     GrafPtr port, Point startPt);
  57. Point DragRect(const Rect *dragRect, const Rect *frameRect,
  58.     const RgnHandle contRgn, const RgnHandle clipRgn, Point startPt);
  59.